import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity('t_article')
export class ArticleEntity {
  @PrimaryColumn({ name: 'f_id' })
  fId: Number;

  @Column({ name: 'f_title' })
  fTitle: String;

  @Column({ name: 'f_author' })
  fAuthor: String;

  @Column({ name: 'f_content' })
  fContent: String;

  @Column({ name: 'f_type_id' })
  fTypeId: Number;

  @Column({ name: 'f_type_name' })
  fTypeName: String;
}
